//
//  ljjiftFrameConst.ljjift
//  AiTouYun
//
//  Created by liujunjie on 2018/9/15.
//  Copyright © 2018年 junjie.liu. All rights reserved.
//

import UIKit

/*
 宽
 高
 屏幕比率
 导航高度
 */
public let ljj_fullscreen_height = UIScreen.main.bounds.size.height
public let ljj_fullscreen_width = UIScreen.main.bounds.size.width
public let ljj_frame_ratio = ljj_fullscreen_width/375.0
public let ljj_navHeight = ljj_equipmentModel ? 88 : 64
public let ljj_bounds = UIScreen.main.bounds

public extension UIFont {
    
     static func ljjSystemFont(_ value: CGFloat) -> UIFont {
       return UIFont.systemFont(ofSize: value * ljj_frame_ratio)
    }
}

public extension CGFloat {
    
     public func ljjFit() -> CGFloat {
        return self * ljj_frame_ratio
    }
}

public extension Int {
    
    public func ljjFit() -> CGFloat {
        return CGFloat(self) * ljj_frame_ratio
    }
}
